-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to Sparql. #75
Conversation
A quick bit of verification on my own: The transitive Sparql query here appears to work fine on Fedora 3.6.2, with whatever version of Mulgara it packs... Not sure about older versions. |
@adam-vessey, sorry, i still have questions if you got some time your blank node -unnamed variable- query at adam-vessey@d157879#diff-d6fe00e82b5d432596ebff868818181bR480 still does not make sense to me. If you are quering for "every object that has a collection CMODEL" UNION "(not named variable) every object that has as model an -object- that has a collection CMODEL, you get the same result as using the first query without union because the last one matches nothing. would match only if it had any of this forms
In this cases: you will get every object in the RI that has a content model, second one every object that is a fedora object, third one duplicated 1 + 2. Any of these will also return collection objects. So if this would be the intention…not sure why do you explicitly get collection cmodel objects. Since every object in fedora has a model, i suppose the idea is to get also the non-collection objects ? I don't understand, sorry, need some clarification or explanation, is there an edge case?. Also i think the SELECT needs a "distinct" Thanks, sorry for being so picky/hard to understand 😬 |
@DiegoPino Just because a variable is not named does not mean it is not bound. The syntax is short-hand for a single step of transitivity. See http://www.w3.org/TR/rdf-sparql-query/#QSynBlankNodes, particularly the section about using this structure in square brackets as an object. Once upon a time, we had taken a stab at content model inheritance, so we had "special" collection content models which As for making it |
( | ||
$child <fedora-model:hasModel> $model | ||
and $model <mulgara:is> <info:fedora/islandora:collectionCModel> | ||
and $parent_model <mulgara:is> <info:fedora/fedora-system:ContentModel-3.0> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A note to myself as I notice it: Another oddly bound/unbound $parent_model
dealio, making no real assertion.
@adam-vessey, thanks for the clarification on the use case/legacy compat. need, i know blanks are bound in the solution and sparql syntax is luckily (or sadly sometimes) not new for me, but had never guessed that there are some objects out there that really match So we had islandora cmodel inheritance in the past, nice to know and that we still care for those. Your |
Dependent on Islandora/islandora#623